package cn.smile.excel.writer.xssf;

import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

/**
 * XSSF所必需的对象
 *
 * @Author: 毛苏宇
 * User: me
 * Date: 2019/12/4
 * Time: 18:46
 * Description:
 */
public class XSSF {

    /**
     * 在内存中创建一个excel文件
     */
    private XSSFWorkbook workbook = new XSSFWorkbook();
    /**
     * 创建工作簿
     */
    private XSSFSheet sheet = workbook.createSheet();
    /**
     * Excel保存路径
     */
    private String path;

    public XSSF(String path) {
        this.path = path;
    }

    public XSSFWorkbook getWorkbook() {
        return workbook;
    }

    public XSSFSheet getSheet() {
        return sheet;
    }

    public String getPath() {
        return path;
    }

}
